﻿using System.Runtime.InteropServices;

namespace MYSTARFORCE
{
    /// <summary>
    /// 碰撞数据结构体
    /// </summary>
    [StructLayout(LayoutKind.Auto)]
    public struct ImpactData
    {
        private readonly CampType m_Camp;
        private readonly int m_HP;
        private readonly int m_Attack;
        private readonly int m_Defense;

        /// <summary>
        /// 碰撞数据结构体
        /// </summary>
        /// <param name="camp">阵营</param>
        /// <param name="hp">血量</param>
        /// <param name="attack">攻击力</param>
        /// <param name="defense">防御力</param>
        public ImpactData(CampType camp,int hp,int attack,int defense)
        {
            m_Camp = camp;
            m_HP = hp;
            m_Attack = attack;
            m_Defense = defense;
        }

        public CampType Camp
        {
            get { return m_Camp; }
        }

        public int HP
        {
            get { return m_HP; }
        }

        public int Attack
        {
            get { return m_Attack; }
        }

        public int Defense
        {
            get { return m_Defense; }
        }
    }
}